<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div class="board_contents">
	<h1>Schedule List</h1>
	<input type="button" class="btn" value="달력 보기" onclick="employee_schedule()"/>
		<div id="schedule_list">
		<table id="schedule_list_table">
			<tr>
				<th>일정</th>
				<th>제목</th>
				<th colspan="2">내용</th>
			</tr>
			<c:forEach items="${scList}" var="schedule">
				<tr>
					<td><fmt:formatDate value="${schedule.scheduleStartDate }" pattern="YYYY/MM/dd" />
					~<fmt:formatDate value="${schedule.scheduleEndDate }" pattern="YYYY/MM/dd" /></td>
					<td id="title">${schedule.scheduleTitle }</td>
					<td id="article">${schedule.scheduleContents }</td>
					<td><input type="button" class="btn" value="삭제" onclick="schedule_delete(${schedule.scheduleNo})"></td>
				</tr>
			</c:forEach>
		</table>
		</div>
</div>
<!-- board_contents end div -->
